package com.jwsoft.manager.core.dao.mapper;

import com.jwsoft.manager.core.dao.model.EduStudentEnrollFamily;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwsoft.manager.core.dao.model.EduhStudentEnrollFamily;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* <p>
  *  Mapper 接口
  * </p>
*
* @author wangtao
* @since 2022-11-25
*/
@Mapper
public interface EduStudentEnrollFamilyMapper extends BaseMapper<EduStudentEnrollFamily> {
    void delByPreId(String studentEnrollPreId);
    void removeByPreId(String studentEnrollPreId);

    List<EduStudentEnrollFamily> selectMigrationByPre(@Param("year") Integer year,@Param("pageSize")Integer pageSize);

    Integer deleteByTaskHistory(@Param("taskDetailId") String taskDetailId);

    Integer selectEncryptionCountByYear( @Param("taskDetailId") String taskDetailId);

    List<EduhStudentEnrollFamily> selectEncryptionByYear(@Param("taskDetailId") String taskDetailId,@Param("pageSize") Integer pageSize);

    Integer countMigrationData(@Param("year")Integer year);
}
